#!/usr/bin/env python
# -*- coding: utf-8 -*-

from web.manager.log_manager import LogManager
from web.service.base_service import BaseService

Logger = LogManager.get_logger(__name__)

"""
StockIndex的service类
"""


class StockIndexService(BaseService):

    def find_close_price_by_code_between_date_order_by_date_asc(self, code, begin_date, end_date):
        """
        根据code，查询一段时间内的收盘价，并按照日期升序排列
        """

        return self.stock_index_dao.find_close_price_by_code_between_date_order_by_date_asc(code, begin_date, end_date)
